package com.gantang.gax.enums;

import lombok.Getter;

@Getter
public enum ResultFailEnum {

    FEATURE_TABLE_ERROR("11001", "配置表错误"),
    FEATURE_TABLE_FEATURE_ERROR("11002", "配置表特征清单错误"),
    FEATURE_TABLE_RULE_ERROR("11003", "配置表约束关系错误"),

    TASK_ID_EXIST("12001", "任务编号已存在"),
    TASK_ID_NOT_EXIST("12002", "任务编号不存在"),

    ENGINE_NOT_EXIST("13001", "引擎不存在"),
    ENGINE_COMPILE("13002", "引擎编译中"),
    ENGINE_COMPILE_FAIL("13003", "编译失败"),
    ENGINE_COMPILE_TIMEOUT("13004", "编译超时"),

    PARAMS_ERROR("14001", "入参不合法"),

    COMB_ERROR("15001", "配置组合异常");

    private final String errorCode;
    private final String errorDesc;

    ResultFailEnum(String errorCode, String errorDesc) {
        this.errorCode = errorCode;
        this.errorDesc = errorDesc;
    }
}
